//
//  Config.h
//  PeaPodAgent
//
//  Created by MasterLing on 2017/8/18.
//  Copyright © 2017年 MasterLing. All rights reserved.
//

#ifndef Config_h
#define Config_h


#define apikey  @"82428a4618b6aa313be6914d727cb9b7"

//Key
#define BugTagKey @"e87c96be936205cde7ff0e5166fdf3da"
#define YouMengKey @"59a8cb7a45297d44c1001f9d"
#define JpushKey @"e7f856e29c7e4f0d5f484b9d"
#define UDID [KeyChainTool getDeviceId]
#define IOS @"2"
#define SAMAccoutforService @"AccoutforService"
#define SAMAccoutaccount @"Accoutaccount"
#define SAMPasswordforService @"PasswordforService"
#define SAMPasswordaccount @"Passwordaccount"
#define KKVPNStatus @"vpnstatus"
#define KKCitySelectNotification @"cityselectnotification"
#define KKForceLineNotification @"forcelinenotification"
#define KKWillTerminate @"willterminate"



#define EncryptKey @"30&SPc)RI"


#define kScreenW [UIScreen mainScreen].bounds.size.width
#define kScreenH [UIScreen mainScreen].bounds.size.height

//标识
#define KKDecodeKey @"6cb6e76033fa753935c883e666623686@"

#define KKVPNInfoKey @"vpninfo"

#define KKInAppStore @"AppInStore"

//Font
#define HelveticaLight16Textattributes @{NSFontAttributeName : HelveticaLight16}
#define HelveticaLight16 [UIFont fontWithName:@"Helvetica-Light" size:16.0f]

#define HelveticaLight15Textattributes @{NSFontAttributeName : HelveticaLight15}
#define HelveticaLight15 [UIFont fontWithName:@"Helvetica-Light" size:15.0f]

#define HelveticaLight14Textattributes @{NSFontAttributeName : HelveticaLight14}
#define HelveticaLight14 [UIFont fontWithName:@"Helvetica-Light" size:14.0f]

#define HelveticaLight13Textattributes @{NSFontAttributeName : HelveticaLight13}
#define HelveticaLight13 [UIFont fontWithName:@"Helvetica-Light" size:13.0f]

#define HelveticaLight12Textattributes @{NSFontAttributeName : HelveticaLight12}
#define HelveticaLight12 [UIFont fontWithName:@"Helvetica-Light" size:12.0f]

#define HelveticaLight11Textattributes @{NSFontAttributeName : HelveticaLight11}
#define HelveticaLight11 [UIFont fontWithName:@"Helvetica-Light" size:11.0f]

#define HelveticaLight10Textattributes @{NSFontAttributeName : HelveticaLight10}
#define HelveticaLight10 [UIFont fontWithName:@"Helvetica-Light" size:10.0f]

//Color
#define _000000 [UIColor hexStringToColor:@"#000000"]
#define _333333 [UIColor hexStringToColor:@"#333333"]
#define _666666 [UIColor hexStringToColor:@"#666666"]
#define _999999 [UIColor hexStringToColor:@"#999999"]
#define f3f5f9  [UIColor hexStringToColor:@"#f0f0f0"]
#define f8fcff  [UIColor hexStringToColor:@"#f8fcff"]
#define f6f7f9  [UIColor hexStringToColor:@"#f6f7f9"]



// 打印方法运行时间
#define TIME_BEGIN NSDate * startTime = [NSDate date];
#define TIME_END VTLog(@"time interval: %f", -[startTime timeIntervalSinceNow]);

// 设置RGBA颜色值
#define RGBACOLOR(r,g,b,a) [UIColor colorWithRed:(r)/255.0f green:(g)/255.0f blue:(b)/255.0f alpha:(a)]
#define RGBCOLOR(r,g,b) [UIColor colorWithRed:(r)/255.0f green:(g)/255.0f blue:(b)/255.0f alpha:(1.f)]
// 十六进制转UIColor
#define kVTColorFromHex(hexValue) [UIColor \
colorWithRed:((float)((hexValue & 0xFF0000) >> 16))/255.0 \
green:((float)((hexValue & 0xFF00) >> 8))/255.0 \
blue:((float)(hexValue & 0xFF))/255.0 alpha:1.0]

// 判断设备是否是iPhone
#define kiPhoneDevice ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPhone)

// tabbar高度
#define VTTABBAR_HEIGHT (49)
// 状态栏高度
#define VTSTATUSBAR_HEIGHT (20)



//错误code
#define STATUS_OK 200
#define PARAM_ERROR 10001
#define PHONE_INVALID 10002
#define PASSWORD_INVALID 10003
#define PASSWORD_NOT_MATCH 10004
#define STATUS_OUTTIME 10027
#define STATUS_MOREDEVICE 20001



/**Dubug相关*/

#ifdef DEBUG
#define MyLog(format,...)  NSLog((@"[函数名:%s]\n" "[行号:%d]\n" format),__FUNCTION__,__LINE__,##__VA_ARGS__)
#else
#define MyLog(...)
#endif

#define StatusBarAndNaviBarHeight  [[UIApplication sharedApplication]statusBarFrame].size.height + 44

#define APPID @""

#endif /* Config_h */
